<?php
$this->lang->load('template');
//$this->lang->load('validation');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0048)http://www.fav365.com/ball/?m=admin&c=good&a=add -->
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="/css/admin.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<STYLE type=text/css>.STYLE1 {
	COLOR: #ff0000
}
</STYLE>
</HEAD>
<BODY>
<DIV class=admin_box>
<DIV class=admin_boxtop></DIV>
<DIV class=admin_boxmain>
<?=form_open('navs/save');?>
<input type="hidden" value="<?=intval($result['id'])?>" name="id" />
<input type="hidden" value="<?=site_url('navs/admin')?>" name="redirect" />
<TABLE cellSpacing=0 cellPadding=0 width="96%" align=center border=0>
  <TBODY>
  <TR>
    <TD>
      <H1 class=title>
	  <?php
	  if(!isset($result)):
	  ?>
	  <?=$this->lang->line('tpl_act_add')?>导航
	  <?php else:?>
	  <?=$this->lang->line('tpl_act_edit')?>导航-<?=$result['name']?>
	  <?php endif;?>
	  </H1></TD></TR></TBODY></TABLE>
	  <div>
	  <?=$this->validation->error_string; ?>
	  </div>
<TABLE class=table cellSpacing=1 cellPadding=5 width="96%" align=center 
border=0>
  <TBODY>
  <TR>
    <TD class="tdbg bold" width="24%">
      <DIV align=right><?=$this->lang->line('tpl_name');?></DIV></TD>
    <TD><INPUT class=inputstyle name="name" value="<?=$result['name']?>"> <SPAN class=STYLE1>*</SPAN></TD></TR>
  <!--
  <TR>
    <TD class="tdbg bold">
      <DIV align=right>系统内容</DIV></TD>
    <TD>
    <select name="ctype">
    	<option value="">请选择</option>
    	<option value="Article"><?=$this->lang->line('tpl_article');?><?=$this->lang->line('tpl_cates');?></option>
	</select>
    </TD></TR>
  -->
  <TR>
    <TD class="tdbg bold">
      <DIV align=right>上级导航</DIV></TD>
    <TD><SELECT class=inputstyle name="parent_id">
		<option value="0">请选择</option>
		<?=$options?>
	</SELECT> <SPAN class=STYLE1>*</SPAN> </TD></TR>
  <TR>
    <TD class="tdbg bold">
      <DIV align=right>连接</DIV></TD>
    <TD><INPUT class=inputstyle type="text" name="url" value="<?=$result['url']?>"><SPAN class=STYLE1>*</SPAN> </TD></TR>
  <TR>
    <TD class="tdbg bold">
      <DIV align=right>位置</DIV></TD>
    <TD>
    <select name="position">
    <option value="top"<?php if($result['position']=='top'):?> selected="selected"<?php endif;?>>顶部</option>
	<option value="middle"<?php if($result['position']=='middle'):?> selected="selected"<?php endif;?>>中间</option>
	<option value="bottom"<?php if($result['position']=='bottom'):?> selected="selected"<?php endif;?>>底部 </option>
	</select>
    </TD></TR>
  <TR>
    <TD class="tdbg bold">
      <DIV align=right><?=$this->lang->line('tpl_yes')?><?=$this->lang->line('tpl_no')?>打开新页面</DIV></TD>
    <TD>
	<select name="is_blank">
		<option value="0"<?php if($result['is_blank']==0):?> selected="selected"<?php endif;?>><?=$this->lang->line('tpl_no')?></option>
		<option value="1"<?php if($result['is_blank']==1):?> selected="selected"<?php endif;?>><?=$this->lang->line('tpl_yes')?></option>
	</select>
	 </TD></TR>
  <TR>
    <TD class="tdbg bold">
      <DIV align=right><?=$this->lang->line('tpl_yes')?><?=$this->lang->line('tpl_no')?><?=$this->lang->line('tpl_ishow')?></DIV></TD>
    <TD>
	<select name="is_show">
		<option value="1"<?php if($result['is_show']==1):?> selected="selected"<?php endif;?>><?=$this->lang->line('tpl_yes')?></option>
		<option value="0"<?php if(isset($result['is_show'])&&$result['is_show']==0):?> selected="selected"<?php endif;?>><?=$this->lang->line('tpl_no')?></option>
	</select></TD></TR>
  
  <TR>
    <TD class="tdbg bold">
      <DIV align=right><?=$this->lang->line('tpl_sort')?></DIV></TD>
    <TD>
	<input type="text" name="sort_order" value="<?=intval($result['sort_order'])?>">
	正序排列（0->1->2），默认为0
	</TD></TR>
  
  
  <TR>
    <TD colSpan=2>
      <DIV align=center><INPUT class=btn type=submit value="<?=$this->lang->line('tpl_submit');?>" name=Submit> <INPUT class=btn onclick=history.back(-1) type=button value="<?=$this->lang->line('tpl_returnback');?>"> 
    </DIV></TD></TR></TBODY></TABLE></FORM></DIV>
<DIV class=admin_boxbottom></DIV></DIV></BODY></HTML>
